package ac_0724;

import java.util.ArrayList;
import java.util.ListIterator;


public class ScoreBoard{

	public static ArrayList<Player> players = new ArrayList<Player>();
	
	public static void save(String name, int score) {
		Player player = new Player(name, score);
		players.add(player);
	}
	
	@Override
	public String toString() {
		String temp = "";
		ListIterator<Player> li = players.listIterator();
		while(li.hasNext()) {
			temp += "\n" + li.next();
		}
		return temp;
	}
	
	
	
	

}
